package com.yijinsuo.response;

import org.json.JSONObject;

/**
 * 投资第一步
 */
public class InvestmentStepOneRes {

    /**
     *
     *  "minAmount": "50.00",
     "availableMoney": "0.00",
     "isDay": "2",
     "maxAmount": "3000.00",
     "isFirst": "true",
     "endStart": "1",
     "annualInterestRate": 2,
     "borrowEId": "xJQHc7I[j]220[d]",
     "borrowTimeLimit": 3
     */

    /***
     * "minAmount": "起头金额",
     * "availableMoney": "账户余额",
     * "maxAmount": "可投金额",
     * "isFirst": "是否第一次:true(是)false(否)",
     * "borrowEId": "标id",
     * "annualInterestRate": "年利率",
     * "isDay": "1:天，2：月",
     * "borrowTimeLimit": "期限",
     * "endStart": "1：可投资；2：已结束"
     */
    private String minAmount;   //起头金额
    private String availableMoney;   //账户余额
    private String maxAmount;       //可投金额
    private String isFirst;     //是否第一次:true(是)false(否)
    private String borrowEId;   //标id
    private String annualInterestRate;   //年利率
    //
    private String isDay;  //1:天，2：月
    private String borrowTimeLimit;    //期限
    private String endStart;            //1：可投资；2：已结束
    private  String repaymentStyle;
    //
    private  String interest;

    public String getInterest() {
        return interest;
    }

    public void setInterest(String interest) {
        this.interest = interest;
    }



    public String getRepaymentStyle() {
        return repaymentStyle;
    }

    public void setRepaymentStyle(String repaymentStyle) {
        this.repaymentStyle = repaymentStyle;
    }




    public String getIsDay() {
        return isDay;
    }

    public void setIsDay(String isDay) {
        this.isDay = isDay;
    }


    public InvestmentStepOneRes(JSONObject json) {
        this.availableMoney = json.optString("availableMoney");
        this.maxAmount = json.optString("maxAmount");
        this.minAmount = json.optString("minAmount");
        this.isFirst = json.optString("isFirst");
        this.borrowEId = json.optString("borrowEId");
        this.annualInterestRate = json.optString("annualInterestRate");
        this.borrowTimeLimit = json.optString("borrowTimeLimit");
        this.endStart = json.optString("endStart");
        this.isDay = json.optString("isDay");
        this.repaymentStyle=json.optString("repaymentStyle");
        this.interest=json.optString("interest");

    }

    public String getBorrowTimeLimit() {
        return borrowTimeLimit;
    }

    public void setBorrowTimeLimit(String borrowTimeLimit) {
        this.borrowTimeLimit = borrowTimeLimit;
    }

    public String getEndStart() {
        return endStart;
    }

    public void setEndStart(String endStart) {
        this.endStart = endStart;
    }

    public String getAnnualInterestRate() {
        return annualInterestRate;
    }

    public void setAnnualInterestRate(String annualInterestRate) {
        this.annualInterestRate = annualInterestRate;
    }


    public InvestmentStepOneRes() {

    }


    public String getAvailableMoney() {
        return this.availableMoney;
    }

    public void setAvailableMoney(String availableMoney) {
        this.availableMoney = availableMoney;
    }

    public String getMaxAmount() {
        return this.maxAmount;
    }

    public void setMaxAmount(String maxAmount) {
        this.maxAmount = maxAmount;
    }

    public String getMinAmount() {
        return this.minAmount;
    }

    public void setMinAmount(String minAmount) {
        this.minAmount = minAmount;
    }

    public String getIsFirst() {
        return this.isFirst;
    }

    public void setIsFirst(String isFirst) {
        this.isFirst = isFirst;
    }

    public String getBorrowEId() {
        return this.borrowEId;
    }

    public void setBorrowEId(String borrowEId) {
        this.borrowEId = borrowEId;
    }


}
